package cn.tedu.jsd2209.csmall.product.ex;

import cn.tedu.jsd2209.csmall.product.web.ServiceCode;

public class ServiceException extends RuntimeException {
    private ServiceCode serviceCode;


    public ServiceException(ServiceCode serviceCode,String message) {
        super(message);
        this.serviceCode=serviceCode;
    }

    public ServiceException(String message, Throwable cause) {
        super(message, cause);
    }

    public ServiceException(Throwable cause) {
        super(cause);
    }

    public ServiceException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    public ServiceCode getServiceCode() {
        return serviceCode;
    }


}
